﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sharp.Events
{
    /// <summary>
    /// Event数据实体
    /// </summary>
    [Serializable]
    public abstract class EventData : IEventData
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        protected EventData()
        {
            EventTime = DateTime.Now;
        }
        /// <summary>
        /// 事件发生时间
        /// </summary>
        public DateTime EventTime { get; set; }
        /// <summary>
        /// 事件发生源
        /// </summary>
        public object EventSource { get; set; }

    }
}
